/**
 * ClassName: Constants.java
 * created on 2013-1-24
 * Copyrights 2013-1-24 hjgang All rights reserved.
 * site: http://t.qq.com/hjgang2012
 * email: hjgang@yahoo.cn
 */
package com.lzkj.baotouhousingfund.app;

import android.os.Environment;

import java.io.File;

public interface Constants {

    long APPOINTMENT_TIME = 180000;//预约倒计时毫秒

    //================= PATH ====================

    String SYSTEM_INIT_FILE_NAME = "lzkj.android";

    String APP_ROOT = Environment.getExternalStorageDirectory().toString() + "/lzkj";

    String WEBVIEW_CACHE = Constants.APP_ROOT + "/webViewCache";

    String PATH_DATA = App
            .getInstance().getCacheDir().getAbsolutePath() + File.separator + "data";

    String PATH_DOWNLOAD = Constants.APP_ROOT + File.separator + "download";


    String PATH_CACHE = PATH_DATA + "/NetCache";


    //动态闪屏序列化地址
    String SPLASH_PATH      = App.getInstance().getFilesDir().getAbsolutePath() + "/alpha/splash";
    String DOWNLOAD_SPLASH  = "download_splash";
    String EXTRA_DOWNLOAD   = "extra_download";
    String SPLASH_FILE_NAME = "splash.srr";


    String HTML_PREFIX = "<html>\n" +
            "<head>\n" +
            "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, " +
            "maximum-scale=1, user-scalable=no\">\n" +
            "</head>\n" +
            "<body>";

    String HTML_SUFFIX = "</body></html>";

    //================= STATUS ====================

    //成功
    int STATUS_SUCCESS = 200;

    int STATUS_QUERY_FAILURE = 201;

    //三方账号未绑定
    int STATUS_THREE_ACCOUNT_UNBOUND = 204;

    //未缴纳入会费用
    int STATUS_UNPAID_MEMBERSHIP = 206;

    int STATUS_OTHER_DEVICE_LOGIN = 412;

    int STATUS_COMPLETE = 0x30;

    int STATUS_REFRESHING = 0x31;

    int STATUS_REFRESH_COMPLETE = 0x32;

    int STATUS_LOADING = 0x33;

    int STATUS_LOAD_COMPLETE = 0x34;

    String STATUS_NO_DATA = "-1";

    //预约发起
    int ORDER_STATUS_APPOINTMENT_LAUNCH = 1;
    //预约接受
    int ORDER_STATUS_APPOINTMENT_ACCEPT = 2;
    //预约取消
    int ORDER_STATUS_APPOINTMENT_CANCEL = 3;
    //订单取消
    int ORDER_STATUS_CANCEL             = 4;
    //已成交
    int ORDER_STATUS_TRADED             = 5;
    //中心派单
    int ORDER_STATUS_CENTER__ALLOCATION = 6;
    //等待支付
    int ORDER_STATUS_WAIT_PAY           = 7;
    //订单挂起
    int ORDER_STATUS_HANG_UP            = 8;

    //二手车直买
    int ORDER_TYPE_STRAIGHT_BUY          = 1;
    //车管帮办
    int ORDER_TYPE_CHEGUNA_DEPUTY        = 2;
    //二手车直卖
    int ORDER_TYPE_DIRECTSELLING         = 3;
    //团购保险
    int ORDER_TYPE_GROUP_INSURANCE       = 4;
    //上门检车
    int ORDER_TYPE_INSPECT_CAR           = 5;
    //上门保养
    int ORDER_TYPE_MAINTAIN_CAR          = 6;
    //团购电瓶
    int ORDER_TYPE_GROUP_STORAGE_BATTERY = 7;
    //团购轮胎
    int ORDER_TYPE_GROUP_TYRE            = 8;

    //团购新车
    int ORDER_TYPE_GROUP_CAR = 9;

    //呼叫救援车
    int ORDER_TYPE_CALL_AMBULANCE  = 10;
    //免费评估
    int ORDER_TYPE_FREE_EVALUATING = 11;

    //搬家货运
    int ORDER_TYPE_MOVE_FREIGHT = 12;

    //修车喷漆
    int ORDER_TYPE_CAR_PAINT = 13;

    //抵押贷款
    int ORDER_TYPE_MORTGAGE_LOAN = 14;

    //优惠洗车
    int ORDER_TYPE_WASH_CAR = 15;

    /**
     * 余额
     */
    int PAY_MODE_BALANCE = 0;

    /**
     * 微信
     */
    int PAY_MODE_WECHAT = 1;

    /**
     * 支付宝
     */
    int PAY_MODE_ALIPAY = 2;


    //1代表消费者,2代表供应商
    int REQUEST_CONSUMER_TYPE = 1;

    //1代表消费者,2代表供应商
    int REQUEST_SERVICE_TYPE = 2;

    //文字
    int PROPERTY_TYPE_TEXT  = 0;
    //图片
    int PROPERTY_TYPE_IMAGE = 1;
    //文件
    int PROPERTY_TYPE_FILE  = 2;


    //================= KEY ====================

    String KEY_ALIPAY = "2017121300665400";

    String WXPay_ID = "aex07566wvayrgxicnaraae";

    String BUGLY_ID = "1edb6732b2";

    String WEIXIN_APP_ID = "wx68850d3857579770";

    String WEIXIN_APP_SECRET = "b4d8668f6b1fedd7a4eacb6cf34eb4c7";

    String WEIBO_APP_KEY = "3679280146";

    String WEIBO_APP_SECRET = "f38166c4f3bb658b7a8885672b11b94f";

    String WEIBO_REDIRECT_URL = "http://sns.whalecloud.com";

    String QQ_APP_ID = "1106553727";

    String QQ_APP_KEY = "YgIZLR4FpuTe7Kli";

    //================= PREFERENCE ====================

    String SP_VERSION_POINT = "version_point";

    String SP_MANAGER_POINT = "manager_point";

    String CENTER_PHONE = "0472-5128888";


    //================= URL ====================

    String WX_TOTAL_ORDER = "https://api.mch.weixin.qq.com/pay/unifiedorder";

    //================= Umeng ====================

    String UMENG_ALIAS      = "carbehalf";
    String UMENG_ALIAS_TYPE = "carbehalf_type";

    //================= Field Key ====================
    //其他设备登录
    String UMENG_CUSTOM_EXTRA_TOKEN    = "token";
    //订单号
    String UMENG_CUSTOM_ORDER_NO       = "order_no";
    //订单状态
    String UMENG_CUSTOM_ORDER_STATE_ID = "order_state_id";
}
